package com.fh.shop.api.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;
@Component
public class TimeJob {

    //@Scheduled(cron = "0/5 * * * * ?")
    public void show(){
        System.out.println(new Date());
    }

    //@Scheduled(cron = "0 0/1 * * * ?")
    public void product(){
        System.out.println("========");
    }
}
